package org.to_zero.springboot.springbootquick.dao.impl;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.to_zero.springboot.springbootquick.dao.DeptDao;
import org.to_zero.springboot.springbootquick.entities.Dept;

import java.util.List;
import java.util.Map;

@Repository
public class DeptDaoImpl implements DeptDao {

    @Autowired
    JdbcTemplate jdbcTemplate;

    @Override
    public List<Map<String, Object>> selectDeptSelective(Dept dept) {
        List<Map<String, Object>> maps = jdbcTemplate.queryForList("select * from dept");
        return maps;
    }
}
